package com.cj.pojo.dto;

import com.cj.pojo.UserStatus;
import jakarta.validation.constraints.Min;

public class UserQueryDTO {
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNum;
    
    @Min(value = 1, message = "每页大小不能小于1")
    private Integer pageSize;
    
    private UserStatus status;
    private String role;

    // Getters and Setters
    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public UserStatus getStatus() {
        return status;
    }

    public void setStatus(UserStatus status) {
        this.status = status;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
